/*
 * ClientWorker.h
 *
 *  Created on: May 24, 2011
 *      Author: madboyka
 */

#ifndef CLIENTWORKER_H_
#define CLIENTWORKER_H_
#include <QThread>
#include "Robot.h"
#include "Server.h"
#include "ClientProtocol.h"

class Server;

/*!
 * Worker thread, that serves the assigned client.
 */
class ClientWorker : public QThread {
public:
	ClientWorker(Server*, ClientProtocol*);
	virtual ~ClientWorker();
	void run();
	Robot *robot;
	QString robotName;
private:
	Server *server;
	bool running;
	ClientProtocol *protocol;
};

#endif /* CLIENTWORKER_H_ */
